package com.ask.mapper;

import com.ask.entity.Rating;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RatingMapper {
    @Select("select * from rating")
    List<Rating> findAll();

    @Select("select * from rating where user_id = #{userId}")
    List<Rating> findByUserId(Long userId);
}
